﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace ValueProviderTest.App_Start
{
    public class MyValueProviderFactoryCollection
    {
        private readonly static ValueProviderFactoryCollection _factories = new ValueProviderFactoryCollection()
        {
            //自定义参数工厂在最前面，防止客户端提交相同参数
            new CustomValueProviderFactory(),
            new ChildActionValueProviderFactory(),
            new FormValueProviderFactory(),
            new JsonValueProviderFactory(),
            new RouteDataValueProviderFactory(),
            new QueryStringValueProviderFactory(),
            new HttpFileCollectionValueProviderFactory(),
            new JQueryFormValueProviderFactory()

        };
        public static ValueProviderFactoryCollection Factories
        {
            get { return _factories; }
        }
    }
}